var M=require("ming_node");
WxOfficialServerPlugin= require("../../ming_node_plgins/WxOfficialServerPlugin")
const Api= require("ming_node/plugins/BaseRpcApi/FileBaseRpcApi");
let api = new Api({tableName:"member.json",prefix:"/opem/member",generateTime:true})
var app=M.server();
app.listen(8888);
app.use(api);

app.use(new WxOfficialServerPlugin({
    appid:"wxb82ed6f75c3a22ad",
    appsecret:"999915ad9371781036b2bf8f917a28fd",
    //微信服务的code通过此地址给后端
    redirect_uri:"http://minglie8888.vaiwan.com/wx/getCode",
    //本地开发不方便redirect_uri会转发到proxy_redirect_uri
    proxy_redirect_uri:"http://minglie8888.vaiwan.com/wx/wxcallback/local",
    //前端的wx.config参数,通过此地址获取
    wxConfigServerUrl:"/proxyScan",

}),api);

app.installPlugin(
    "https://minglie.gitee.io/ming_node_plugis/src/ming_node_plgins/HotServerPlugin.js",
    {
        dirList:["static","static/views/"]
    },{})

